package models

import "github.com/zw2582/zm_go_lib/helpers"

var (
	redisCli = helpers.GetRedisClient()
	cacheKeyInnerWord = "inner_word"
)

//InnerWordAll 获取所有的数据
func InnerWordAll() map[string]string {
	return redisCli.HGetAll(cacheKeyInnerWord).Val()
}

//设置一条新的
func InnerWordSet(word, systemCallFn string)  {
	redisCli.HSet(cacheKeyInnerWord, word, systemCallFn)
}